﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.DALFactory;

namespace KPIS.GERP.GHRMS.BLL
{
    public class TrainingCoreCompetencyBLL
    {
        private static readonly ITrainingCoreCompetencyDAL dal = DataAccess.CreatTrainingCoreCompetency();

        public DataTable LoadCoreCompetency()
        {
          return dal.LoadCoreCompetency();
        }

        public DataTable LoadCompentencyLevel()
        {
            return dal.LoadCompentencyLevel();
        }

        public DataTable Search(int? intCurrCompetencySeq, int? intCoreCompentencyTypeSeq, int? intCompentencyLevel, int? intProficiencySeq, int? ID)
        {
            return dal.Search(intCurrCompetencySeq, intCoreCompentencyTypeSeq, intCompentencyLevel, intProficiencySeq, ID);
        }

        public void Delete(int? intCurrCompetencySeq)
        {
            dal.Delete(intCurrCompetencySeq);
        }

        public void Insert(int? intCoreCompentencyTypeSeq, int? ID, int? intCompentencyLevel, int? CreatBy)
        {
            dal.Insert(intCoreCompentencyTypeSeq, ID, intCompentencyLevel, CreatBy);
        }

        public void Insert1(int? intCoreCompentencyTypeSeq, int? ID, int? intProficiencySeq, int? CreatBy)
        {
            dal.Insert1(intCoreCompentencyTypeSeq, ID, intProficiencySeq, CreatBy);
        }

        public void Update(int? intCoreCompentencyTypeSeq, int? ID, int? intCompentencyLevel, int? CreatBy, int? intCurrCompetencySeq)
        {
            dal.Update(intCoreCompentencyTypeSeq, ID, intCompentencyLevel, CreatBy, intCurrCompetencySeq);
        }

        public void Update1(int? intCoreCompentencyTypeSeq, int? ID, int? intProficiencySeq, int? CreatBy, int? intCurrCompetencySeq)
        {
            dal.Update(intCoreCompentencyTypeSeq, ID, intProficiencySeq, CreatBy, intCurrCompetencySeq);
        }

        public DataTable LoadCoreCompetencyType()
        {
            return dal.LoadCoreCompetencyType();
        }

        public bool CheckValueSubmit(int? intCurrCompetencySeq)
        {
            return dal.CheckValueSubmit(intCurrCompetencySeq);
        }

        public bool CheckUnique(int? ID, int? intCoreCompentencyTypeSeq)
        {
            return dal.CheckUnique(ID, intCoreCompentencyTypeSeq);
        }
    }
}
